package com.wzw.springboot.principle.autoconfig.loadannotation;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Wangzhiwen
 */
@Data
@Accessors(chain = true)
@ConfigurationProperties(prefix = "load")
public class LoadProperties implements Serializable {

    private Map<String, List<Properties>> values = new ConcurrentHashMap<>(6);

    @Data
    @Accessors(chain = true)
    public static class Properties {

        private String basePackage;

        private Class<?> clazz;

    }

}
